<?php

namespace app\common\order\validate;

use think\Validate;

class OrderBomValidate extends Validate
{
    protected $rule = [
        'store_id' => 'require',
        'package_id' => 'require',
        // 'start_time' => 'require',
        // 'end_time' => 'require',
        'sign_date' => 'require',
        'totals' => 'require',
        'remark' => 'require',
        'files' => 'require',
    ];

    protected $message = [
        'store_id.require' => '门店不能为空',
        'package_id.require' => '套餐不能为空',
        'start_time.require' => '开始日期不能为空',
        'end_time.require' => '结束日期不能为空',
        'sign_date.require' => '签约日期不能为空',
        'totals.require' => '合同总金额不能为空',
        'remark.require' => '备注不能为空',
        'files.require' => '附件不能为空',
    ];

}